package com.bjfu.demo.dao;

import com.bjfu.demo.entity.SiteData;
import com.bjfu.demo.entity.SiteDataExample;
import com.bjfu.demo.metric.TrackTime;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface SiteDataMapper {
    long countByExample(SiteDataExample example);

    int deleteByExample(SiteDataExample example);

    int deleteByPrimaryKey(String sitecode);

    int insert(SiteData record);

    int insertSelective(SiteData record);

    @TrackTime
    List<SiteData> selectByExample(SiteDataExample example);

    SiteData selectByPrimaryKey(String sitecode);

    int updateByExampleSelective(@Param("record") SiteData record, @Param("example") SiteDataExample example);

    int updateByExample(@Param("record") SiteData record, @Param("example") SiteDataExample example);

    int updateByPrimaryKeySelective(SiteData record);

    int updateByPrimaryKey(SiteData record);

    List<SiteData> selectSiteId(@Param("district") String district);
}